-- prop_force_add
-- created by shuzy
-- 让某条属性威力+n%

return {
    apply = function(prop, baseValue)
        return math.modf(baseValue * (prop[3] + 1000) / 1000);
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        local targetPropId = tonumber(prop[2]);
        local targetPropRow = PropM.getRow(targetPropId, "rule");
        if "appear_frozen" == targetPropRow.rule then
            -- 需要显示特定冈布奥
            desc = row.append_desc;

            desc = string.gsub(desc, "{0}", PetM.query(127, "name"));
        end

        local value = math.modf(prop[3] / 10);
        desc = string.gsub(desc, "{1}", value);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};